package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.query.ChartQueryObject;
import cn.wolfcode.crm.service.IChartService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChartServiceImpl implements IChartService {

	@Autowired
	private ChartMapper chartMapper;

	public PageInfo query(ChartQueryObject qo) {
		PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());
		return new PageInfo(chartMapper.customerChart(qo));
	}
}
